import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
// import Main from './views/Main.vue'
import Allinfo from './views/Allinfo.vue'
// import goodslist from './views/goods/list.vue'
import goodslistin from './views/goods/in.vue' // 上架中
import goodsOff from './views/goods/off.vue' // 下架中
import goodsFull from './views/goods/full.vue' // 已报满
import goodsRecycle from './views/goods/recycle.vue' // 回收站
import goodsadd from './views/goods/add.vue' // 添加活动
import editActivity from './views/goods/edit.vue' // 编辑活动
import activityOrder from './views/goods/activity-order' // 当前活动订单
import city from './views/center/city.vue'
import brand from './views/center/brand.vue'
import merch from './views/center/merch.vue'
import merchFrom from './views/center/merchFrom.vue'
import merchEdit from './views/center/merchEdit.vue'
import store from './views/center/store.vue'
import storeFrom from './views/center/storeFrom.vue'
import storeEdit from './views/center/storeEdit.vue'
// import memberManagement from './views/center/member-management' // 会员管理
import memberManagement from './views/memberManagement/member-management' // 会员管理
import verificationList from './views/order/verification' // 待核销
import obligationList from './views/order/obligation' // 待付款
import paidList from './views/order/paid' // 已付款
import completedList from './views/order/completed' // 已完成
import closedList from './views/order/closed' // 已关闭
import allOrderList from './views/order/all-order' // 已关闭
import applicationForRefund from './views/order/application-for-refund' // 退款申请
import refundToComplete from './views/order/refund-to-complete' // 退款完成
import refusedRefund from './views/order/refused-refund' // 拒绝退款
import userCancel from './views/order/user-cancel' // 用户取消
import User from './views/setting/User' // 用户管理
import NodeManagement from './views/setting/Node' // 用户管理
import Role from './views/setting/Role' // 角色管理
import Log from './views/setting/Log' // 登入日志
import Setting from './views/setting/Setting' // 会员设置
import applyAccount from './views/financialManagement/apply-account' // 报名结算
import incomeDetail from './views/financialManagement/income-detail' // 收入支出详情
import Balance from './views/financialManagement/balance' // 系统现存余额表
import Balancelog from './views/financialManagement/balancelog' // 月度余额流水明细


import salesclerkManagement from './views/salesclerkManagement/salesclerk-management' // 会员设置
import fa from "element-ui/src/locale/lang/fa";

let routes = [
	{
		path: '*',
		hidden: true,
		redirect: { path: '/404' }
	},
	{
		path: '/login',
		component: Login,
		name: '',
		hidden: true
	},
	{
		path: '/404',
		component: NotFound,
		name: '',
		hidden: true
	},
	{
		path: '/goodslist/:status',
		component: Home,
		name: '活动管理',
		hidden: true
	},

	//{ path: '/main', component: Main },
	{
		path: '/',
		component: Home,
		name: '商城概述',
		iconCls: 'fa fa-dashboard',
		leaf: true,//只有一个节点
		path2: 'admin/allInfo', // 权限判断用
		children: [
			{ path: '/allinfo', component: Allinfo, name: '仪表盘' }
		]
	},
	{
		path: '/',
		component: Home,
		name: '活动管理',
		path2: 'admin/activity', // 权限判断用
		iconCls: 'fa fa-archive',//图标样式class
		children: [
			{ path: '/goodslistin', component: goodslistin, name: '上架中' },
			{ path: '/goodsOff', component: goodsOff, name: '未上架' },
			{ path: '/goodsFull', component: goodsFull, name: '已报满' },
			{ path: '/goodsRecycle', component: goodsRecycle, name: '回收站' },
			{ path: '/goodsadd', component: goodsadd, name: '添加活动' ,hidden: true},
			{ path: '/editActivity', component: editActivity, name: '编辑活动' ,hidden: true},
			{ path: '/activityOrder', component: activityOrder, name: '活动报名' ,hidden: true},
		]
	},

	{
		path: '/',
		name: '会员管理',
		iconCls: 'fa fa-users', // 图标样式class
		component: Home,
		path2: 'admin/member', // 权限判断用
		leaf: true,
		children: [
			{ path: '/member-management', component: memberManagement, name: '会员管理' }
		]
	},
	{
		path: '/',
		name: '订单管理',
		iconCls: 'fa fa-file-text', // 图标样式class
		component: Home,
		path2: 'admin/order', // 权限判断用
		children: [
			{ path: '/obligationList', component: obligationList, name: '待付款' },
			{ path: '/paidList', component: paidList, name: '等位中' },
			{ path: '/verificationList', component: verificationList, name: '待核销' },
			{ path: '/completedList', component: completedList, name: '已完成' },
			{ path: '/closedList', component: closedList, name: '已关闭' },
			{ path: '/allOrderList', component: allOrderList, name: '全部订单' },
		]
	},
	{
		path: '/',
		name: '退款订单',
		iconCls: 'fa fa-times-circle', // 图标样式class
		component: Home,
		path2: 'admin/order', // 权限判断用
		children: [
			{ path: '/applicationForRefund', component: applicationForRefund, name: '退款申请' },
			{ path: '/refundToComplete', component: refundToComplete, name: '退款完成' },
			{ path: '/refusedRefund', component: refusedRefund, name: '拒绝退款' },
			{ path: '/userCancel', component: userCancel, name: '用户取消' },
		]
	},
	// {
	//     path: '/',
	//     component: Home,
	//     name: '中心管理',
	//     iconCls: 'fa fa-university',//图标样式class
	//     children: [
	//         { path: '/city', component: city, name: '城市管理' },
	// 		{ path: '/brand', component: brand, name: '品牌管理' },
	// 		{ path: '/merch', component: merch, name: '商户管理' },
	// 		{ path: '/store', component: store, name: '门店管理' },
	// 		{ path: '/salesclerk-management', component: salesclerkManagement, name: '店员管理'},
	// 		{ path: '/merchFrom', component: merchFrom, name: '添加商户' ,hidden: true},
	// 		{ path: '/merchEdit', component: merchEdit, name: '编辑商户' ,hidden: true},
	// 		{ path: '/storeFrom', component: storeFrom, name: '添加门店' ,hidden: true},
	// 		{ path: '/storeEdit', component: storeEdit, name: '编辑门店' ,hidden: true}
	//     ]
	// },
	{
		path: '/',
		component: Home,
		name: '财务管理',
		iconCls: 'fa fa-money',//图标样式class
		path2: 'admin/finance', // 权限判断用
		children: [
			{ path: '/applyAccount', component: applyAccount, name: '报名结算' },
			{ path: '/balance', component: Balance, name: '系统现存余额表' },
			{ path: '/balancelog', component: Balancelog, name: '月度余额流水明细' },
			// { path: '/brand', component: city, name: '充值记录' },
			// { path: '/merch', component: city, name: '余额明细' },
			{ path: '/incomeDetail', component: incomeDetail, name: '账单流水' ,hidden: true}
		]
	},
	// {
	// 	path: '/',
	// 	component: Home,
	// 	name: '系统管理',
	// 	iconCls: 'fa fa-cogs',//图标样式class
	// 	children: [
	// 		{ path: '/user', component: User, name: '用户管理' },
	// 		{ path: '/node', component: NodeManagement, name: '节点管理' },
	// 		{ path: '/role', component: Role, name: '角色管理' },
	// 		{ path: '/log', component: Log, name: '登入日志' },
	// 	]
	// },
	// {
	// 	path: '/',
	// 	component: Home,
	// 	name: '数据统计',
	// 	iconCls: 'fa fa-rocket',//图标样式class
	// 	children: [
	// 		{ path: '/city', component: city, name: '报名统计' }
	// 	]
	// },

// 我的从这里就开始了


	// 头像那边设置 那个按钮
	{
		path: '/',
		component: Home,
		name: '设置',
		hidden: true,
		leaf: true,
		children: [
			{ path: '/setting', component: Setting, name: '设置' }
		]
	},
	// 店员管理
	// {
	//     path: '/',
	//     name: '店员管理',
	//     // iconCls: 'fa fa-user-circle', // 图标样式class
	//     component: Home,
	//     leaf: true,
	//     children: [
	//         { path: '/salesclerk-management', component: salesclerkManagement, name: '店员管理' }
	//     ]
	// },

	// {
	//     path: '/',
	//     component: Home,
	//     name: '活动管理',
	//     iconCls: 'fa fa-bars',//图标样式class
	//     children: [
	//         { path: '/goodslist/0', component: goodslist, name: '上架中' },
	// 		{ path: '/goodslist/1', component: goodslist, name: '已报满' },
	// 		{ path: '/goodslist/2', component: goodslist, name: '未上架' },
	// 		{ path: '/goodslist/3', component: goodslist, name: '回收站' }
	//     ]
	// },

];

// console.log(routes)
// routes = routes.filter((item) => item.name !== '会员管理')
export default routes;
